package com.xwj;

import com.xwj.config.AppConfig;
import com.xwj.controller.TestController;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author xwj
 * @date 2020/9/22
 */
public class SpringDemoApplication {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext ac = new AnnotationConfigApplicationContext(AppConfig.class);
        TestController testController = ac.getBean(TestController.class);
        System.out.println(testController);
    }
}
